package com.lrkj.property.domain;

import java.math.BigDecimal;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 场地管理对象 tm_site_manag
 *
 * @author yajun_ren
 * @date 2022-03-16
 */
@Data
public class SiteManag extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键Id */
    private String id;

    /** 场地名称 */
    @Excel(name = "场地名称")
    private String siteName;

    /** 小区ID */
    @Excel(name = "小区ID")
    private String communityId;

    /** 场地面积 */
    @Excel(name = "场地面积")
    private BigDecimal siteArea;

    /** 排序 */
    @Excel(name = "排序")
    private Integer orderNum;

    /** 部门ID */
    @Excel(name = "部门ID")
    private String deptId;

    /** 祖父ID */
    @Excel(name = "祖父ID")
    private String ancestors;

    //小区名称
    private String communityName;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("siteName", getSiteName())
            .append("communityId", getCommunityId())
            .append("siteArea", getSiteArea())
            .append("orderNum", getOrderNum())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("ancestors", getAncestors())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
